<template>
  <view class="custom-empty">
    <view class="empty-icon"> </view>
    <view class="empty-text">暂无数据</view>
  </view>
</template>

<script>
export default {
  name: "custom-empty",
  props: {
    text: {
      type: String,
      default: "暂无数据",
    },
  },
  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.custom-empty {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bfbfbf;
  font-size: 14px;
  padding: 16px;
  box-sizing: border-box;

  .empty-icon {
    width: 40px;
    height: 40px;
    background: url("@/static/images/empty.png") no-repeat;
    background-size: 100%;
  }
  .empty-text {
    margin-top: 4px;
  }
}
</style>
